<h4>KARTU HASIL STUDI &raquo; <span class="current_page">LIHAT KARTU HASIL STUDI</span></h4>

            <!-- Begin three column window -->
<div class="onecolumn" style="padding-bottom:20px">
    <div class="header">
    <span>KARTU HASIL STUDI (KHS)</span>
    <div class="switch" style="width:200px; padding-top:14px">
						<table width="200px" cellpadding="0" cellspacing="0">
						<tbody>
							<tr>
								<td align="right">
									<img src="<?php echo base_url().'images/cetak.png' ?>" class="mid_align" /> <?php echo anchor_popup('siam/cetak-khs/'.$tahun.'/'.$semester.'.html', 'CETAK', $atts) ?>
								</td>
                            </tr>
						</tbody>
						</table>
					</div>
	</div>  <?php if($getDataKhs): ?>
	<br class="clear"/> <?php endif; ?>


<div class="text">
<p>
 <?php if($getDataKhs): ?>
 <?php foreach($getDataKhs as $khsValue): ?>
 <div class="data_mhs" align="center">
     <table class="uiTableList" cellpadding="5" cellspacing="0" border="0">
     <form method="post">
     <tbody>
       <tr align="left">
         <td width="65"><b>Nama</b></td>
         <td>:</td>
         <td width="480" ><?php echo strtoupper($khsValue->NAMA) ?></td>
       </tr>
       <tr align="left">
		  <td><b>NIM</b></td>
          <td>:</td>
          <td><?php echo $khsValue->NIM ?></td>
	   </tr>
       <tr align="left">
		  <td><b>Semester</b></td>
          <td>:</td>
          <td><?php echo $khsValue->SEMESTER.' '.$khsValue->NAMA_TAHUN_AJARAN ?></td>
	   </tr>
       </tbody>
       </form>
      </table>
 </div>
 <?php break; ?>
 <?php endforeach; ?>
 <br />
 <table class="data">
            <tr class="font_white" bgcolor="#000000" align="center">
                <th width="30" height="40">No.</th>
                <th width="70">Kode MK</th>
                <th width="310">Nama MK</th>
                <th width="70">SKS</th>
                <th width="70">Nilai</th>
            </tr>
            <?php $seq_number = 1; ?>
            <?php foreach($getDataKhs as $khsValue): ?>
            <tr align="center">
              <td height="18" align="right"><?php echo $seq_number; ?></td>
              <td><?php echo strtoupper($khsValue->KODE_MK) ?></td>
              <td align="left" style="padding-left:7px"><?php echo $khsValue->NAMA_MK ?></td>
              <td><?php echo $khsValue->SKS ?></td>
              <td><?php if($khsValue->NILAI) echo $khsValue->NILAI; else echo "&nbsp";  ?></td>
            </tr>
            <?php $seq_number++; ?>
            <?php endforeach; ?>
 </table>
 <br />
 <div style="margin-left:125px">
 <table>
 <tr>
   <td><b>Indeks Prestasi Semester</b></td>
   <td>:</td>
   <td><?php echo $this->gpa_com->ips($getDataKhs,'NILAI','SKS'); ?></td>
 </tr>
 <tr>
   <td><b>Indeks Prestasi Kumulatif</b></td>
   <td>:</td>
   <td><?php echo $this->gpa_com->ipk_processor(); ?><?php //echo $this->gpa_com->ipk($getDataIpk,'NILAI','SKS'); ?></td>
 </tr>
 </table>
 </div>
 <?php else: ?>
 <div align="center">
  <div style="width:500px">
      <div id="p_messages_error">
        Data tidak tersedia.
      </div>
   </div>
 </div>
 <?php endif; ?>
</p>
<?php echo br(2) ?>

<div align="center">
<a title="Klik untuk kembali" class="auiButton" href="<?php echo base_url().'siam/lihat-khs.html' ?>" role="button"><img src="<?php echo base_url().'images/back.png' ?>" align="top" style="border:none" /> <span class="uiButton">Kembali</span></a>
</div>

<br />

</div>

</div>